package cn.wangwang.application;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by Wangwang on 2017/11/24.
 */
@Configuration
public class PageConfigurer extends WebMvcConfigurerAdapter {
    //@Override
    //public void addViewControllers(ViewControllerRegistry registry) {
    //    registry.addViewController("/error").setViewName("error.html");
    //    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    //}

    @Override
    public void configurePathMatch(PathMatchConfigurer configurer) {
        super.configurePathMatch(configurer);
        configurer.setUseSuffixPatternMatch(false);
    }
}
